from dataclasses import dataclass

from src.application.common.exceptions import ApplicationException


@dataclass
class OrderIdNotExist(ApplicationException):
    order_id: int

    @property
    def message(self) -> str:
        return f'A order with the "{self.order_id}" order_id is not exists'


@dataclass
class OrderIdAlreadyExist(ApplicationException):
    order_id: int

    @property
    def message(self) -> str:
        return f'A order with the "{self.order_id}" order_id already exists'
